var a = 1;
console.log(a);
a = 'NaN';
console.log(a);
var b = [1, "123"];
// let b: number[] =[1,'undefined']
console.log(b);
var str = '1';
var str2 = str;
console.log(str2);
var c = '123';
console.log(c);
// c = 321
console.log(c);
var global_num = 11111;
var TTQ = /** @class */ (function () {
    function TTQ() {
        this.age = 27;
    }
    TTQ.prototype.getAge = function () {
        return this.age;
    };
    TTQ.uname = 'ttq';
    return TTQ;
}());
{
    var a1 = 3333;
    console.log(a1);
}
// console.log(a1);
console.log(global_num);
console.log(TTQ.uname);
var t = new TTQ();
console.log(t.getAge());
console.log(global_num + '123');
for (var _i = 0, _a = [10, 20, 30]; _i < _a.length; _i++) {
    var key = _a[_i];
    console.log(key);
}
function log() {
    return '123';
}
function log1(name) {
    return name + 123;
}
function log2(name, age) {
    return name + 123;
}
function fn(name) {
    if (name === void 0) { name = 'ttq'; }
    console.log(name);
}
// fn()
console.log(log2('111'));
// 1 在元素后接[]
var arr1 = [1, 2, 3];
// 2 使用数组泛型
var arr2 = [1, 2, 3];
console.log(arr1);
console.log(arr2);
